Using cycle() from itertools